package cn.theten52.demo.patterns.design.visitor.base;

/**
 * 涨薪
 *
 * @author wangjin
 * @date 2021/4/5
 */
public class ExtraVacationVisitor implements Visitor<Member> {
    @Override
    public void visit(Member t) {
        if (t instanceof EmployeeMember) {
            System.out.println("给普通员工涨薪20%");
        } else {
            System.out.println("给项目经理涨薪30%");
        }
    }
}
